package com.yang.cxf;

import org.apache.cxf.endpoint.Client;
import org.apache.cxf.jaxws.endpoint.dynamic.JaxWsDynamicClientFactory;
import org.junit.Test;

public class CXFTest {
	
	@Test
	public void test1(){
		JaxWsDynamicClientFactory dcf = JaxWsDynamicClientFactory.newInstance();
		Client client = dcf.createClient("http://10.120.20.10:7001/sggis/services/BaseService?wsdl");
		 
		/*try {
			Object[] res = client.invoke("echo", "test echo");
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}*/
	}
	public static void main(String[] args) {
		JaxWsDynamicClientFactory dcf = JaxWsDynamicClientFactory.newInstance();
		Client client = dcf.createClient("http://10.120.20.10:7001/sggis/services/BaseService?wsdl");
		 
		/*try {
			Object[] res = client.invoke("echo", "test echo");
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}*/
	}
}
